package io.gitee.chearnee.fw.common.processor;

import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cn
 * @version 1.0
 * @description
 * @date 2022/7/11 19:55
 */
@Service
@RequiredArgsConstructor
public class ProcessorFactory implements InitializingBean, DisposableBean {

  private final List<IProcessor<?, ?>> processors;

  @Override
  public void afterPropertiesSet() throws Exception {
    Processor objectObjectProcessor = new Processor<>();
    objectObjectProcessor.setFilters(processors);
//    objectObjectProcessor.processing()

  }

  @Override
  public void destroy() throws Exception {

  }
}
